package com.example.test01;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class Activity01 extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState ){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity01);
	
		
		Button button = (Button) findViewById(R.id.button2);
		button.setOnClickListener(new Button.OnClickListener(){
			public void onClick(View v){
				Intent intent = new Intent();
				intent.setClass(Activity01.this, MainActivity.class);
				startActivity(intent);
				Activity01.this.finish();
			}
		});
	}
	public void onStop(){
		Log.i("TEST02", "destory  01");
		super.onStop();
	}

}
